import request from '@/utils/request'

export default {
  //分页查询讲师的方法
  getTeacherList(current, size, teacherQuery) {
    return request({
      url: `/api/courses/pageTeacherCondition/${current}/${size}`,
      method: 'post',
      data: teacherQuery,
      headers: {
        'Content-Type': 'application/json'
      }
    })
  },

  //根据id获取讲师
  getTeacherInfo(teacherId){
    return request({
      url:`/api/courses/getTeacherInfo/${teacherId}`,
      method:'get'
    })
  }

}
